export const dealAreaBaseData = (tree: Record<string, any>) => {
  function inn(tree: any) {
    tree.forEach((item: any) => {
      if (item.children && item.children.length === 0) {
        delete item.children
      } else if (item.children && item.children.length) {
        inn(item.children)
      }
    })
  }
  inn(tree)
  return tree
}
